package com.mc.code.entity.sys;

import com.mc.code.entity.sys.SysRole;

import java.util.List;

public class SysUser {
    private int id;
    //管理员账号
    private String adminNo;
    //姓名
    private String adminName;
    //密码
    private String password;
    //手机号
    private String mobile;
    //状态
    private String state;

    //对应的角色
    private List<SysRole> roles;

    //------------
    //显示当前页
    private int currentPage;
    //总页数
    private int pageCount;

    public SysUser() {
    }

    public SysUser(int id, String adminNo, String adminName,String state) {
        this.id = id;
        this.adminNo = adminNo;
        this.adminName = adminName;
        this.state = state;
    }

    public SysUser(String adminNo, String adminName, String state) {
        this.adminNo = adminNo;
        this.adminName = adminName;
        this.state = state;
    }

    public SysUser(String adminNo, String adminName, String password, String mobile, String state) {
        this.adminNo = adminNo;
        this.adminName = adminName;
        this.password = password;
        this.mobile = mobile;
        this.state = state;

    }

    public SysUser(int id, String adminNo, String adminName, String password, String mobile, String state, List<SysRole> roles) {
        this.id = id;
        this.adminNo = adminNo;
        this.adminName = adminName;
        this.password = password;
        this.mobile = mobile;
        this.state = state;
        this.roles = roles;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAdminNo() {
        return adminNo;
    }

    public void setAdminNo(String adminNo) {
        this.adminNo = adminNo;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public List<SysRole> getRoles() {
        return roles;
    }

    public void setRoles(List<SysRole> roles) {
        this.roles = roles;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    @Override
    public String toString() {
        return "SysUser{" +
                "id=" + id +
                ", adminNo='" + adminNo + '\'' +
                ", adminName='" + adminName + '\'' +
                ", password='" + password + '\'' +
                ", mobile='" + mobile + '\'' +
                ", state='" + state + '\'' +
                ", roles=" + roles +
                ", currentPage=" + currentPage +
                ", pageCount=" + pageCount +
                '}';
    }
}
